﻿using WebApp.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebApp.ViewModels
{
    public class EasyuiTreeModel
    {
        public int id { get; set; }

        public string text { get;set;}

        public string iconCls { get; set; }

        public string state { get; set; }

        public bool _ischecked { get; set; }

        public object attributes { get; set; }

        public IList<EasyuiTreeModel> children { get; set; }
    }

    public class EasyuiTreeModelV2
    {
        public string id { get; set; }

        public string text { get; set; }

        public string iconCls { get; set; }

        public string state { get; set; }

        public bool _ischecked { get; set; }

        public object attributes { get; set; }

        public IList<EasyuiTreeModelV2> children { get; set; }
    }

    public class attrs
    {
        public int id { get; set; }
        public int nodelevel { get; set; }
        public string nodecode { get; set; }
        public string nodetype { get; set; }
    }

    public class crftableattrs
    {
        public string tableid { get; set; }

        public string nodetype { get; set; }
    }

    public class randomattrs
    {
        public string randomkey { get; set; }

        public int site_id { get; set; }
    }

    public class studyreportattrs
    {
        public int studyid { get; set; }

        public int ispi { get; set; }

        public string nodetype { get; set; }
    }

    public class fieldattrs
    {
        public int crfid { get; set; }
        public string crfname { get; set; }
        public int id { get; set; }
        public int pid { get; set; }
        public int nodelevel { get; set; }
        public string nodecode { get; set; }
        public string nodetype { get; set; }
        public string islistfield { get; set; }
    }
}
